package com.yaolonga.dc.core;

import com.yaolonga.dc.core.enums.LogicType;
import com.yaolonga.dc.core.enums.NodeType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.List;

/**
 * @author yaolong
 * @version V1.0.0
 * @program dynamic-condition
 * @description 条件分组节点
 * @create 2024-06-01 20:19
 **/
@Getter
@Setter
@AllArgsConstructor(staticName = "of")
@Builder
@NoArgsConstructor
public class GroupNode implements Node {
    private LogicType logicType;
    private List<ConditionNode> conditions;

    @Override
    public NodeType getNodeType() {
        return NodeType.GroupNode;
    }
}
